package cn.ydw.www.plugin.app;

import android.app.Application;

import cn.ydw.www.plugin_lib.PluginManager;

/**
 * @author 杨德望
 * Create on 2020/6/30
 * 描述:
 */
public class MyApp extends Application {

    private static MyApp app;

    public static MyApp getApp() {
        if (app == null) {
            synchronized (MyApp.class) {
                if (app == null) {
                    app = new MyApp();
                    app.onCreate();
                }
            }
        }
        return app;
    }

    @Override
    public void onCreate() {
        super.onCreate();

        PluginManager.getInstance().init(this);

    }
}
